import request from "@/request/request.ts";

/**
 * 用户登录
 * @param userAccount
 * @param userPassword
 */
export const userLogin = ({userAccount, userPassword}: any) => {
  return  request.post('/api/user/login',
    {
      userAccount,
      userPassword
    })
}

export const userRegister = ({checkPassword, userAccount, userPassword}: any) => {
  return request.post('/api/user/register',
    {
      checkPassword,
      userAccount,
      userPassword
    })
}
